#ifndef SESSIONDETAILWIDGET_H
#define SESSIONDETAILWIDGET_H

#include <QDialog>
#include <QWidget>
#include <QLabel>
#include <QPushButton>

#include "model/data.h"

using model::UserInfo;

/*
 * 表示在聊天窗口右上方的三个点打开的时候：一个头像和名字
 *
 */
class AvatarItem : public QWidget
{
    Q_OBJECT;
public:
    AvatarItem(const QIcon& avatar,const QString& name);

    QPushButton* getAvatar() {
        return avatarBtn;
    }

private:
    QPushButton* avatarBtn;
    QLabel* nameLabel;

};


/*
 * 单聊会话详情
 *
 */
class SessionDetailWidget : public QDialog
{
    Q_OBJECT
public:
    SessionDetailWidget(QWidget* parent,const UserInfo& userInfo);

    void clickDeleteFriendBtn();

private:
    QPushButton* deleteFriendBtn;
    //个人信息
    UserInfo userInfo;
};

#endif // SESSIONDETAILWIDGET_H
